package com.brillilab.domain.enums.lab;

/**
 * 实验室用户卡关系枚举
 * @author lj
 *
 */
public class LabUserCardEnum {
	/**
	 * 状态：1-已授权，2-已绑卡，3-已解绑
	 */
	public static enum State {     
		AUTHORIZED("已授权", 1), TIED_CARD("已绑卡", 2), UNBIND("已解绑", 3);		
		public String key;     
		private Integer value;       
		private State(String key, Integer value) {       
			this.key = key;       
			this.value = value;     
		}       
		public String getKey() {
			return key;     
		}
		public static String getKey(Integer value) {  
			for (State p : State.values()) {  
				if (p.getValue().equals(value)) {  
					return p.key;  
				}  
			}  
			return null;  
		}  
		public Integer getValue() {
			return value;     
		}         
	} 
	
	
}
